<div class="container container-gary1">
      <!-- question -->
      <div class="question-top">
          <div class="question-enter clearfix">
              <input class="question-input" type="text" placeholder="输入问题关键词，如 订单" />
              <input class="question-btn" type="button" value="提问" />
          </div>
      </div>

      <div class="m-ptb wrap clearfix">
          <div class="member-left">
              {volist name="catedata" id="vo"}
                <div {in name="vo['id']" value="$navids"} class="member-l-list current"{else /} class="member-l-list m-current"{/in}>
                    <div class="member-l-title clearfix"><span>{$vo.name}</span><i></i></div>
                    <ul {notin name="vo['id']" value="$navids"}style="display: none;"{/notin}>
                        {volist name="vo['subdata']" id="v"}
                            <li {in name="v['id']" value="$navids"}class="m-selected"{/in}><a href="{:url('cms/help/question',['catid'=>$v['id']])}">{$v.name}</a></li>
                        {/volist}
                    </ul>
                </div>
              {/volist}
          </div>
          <div class="member-right">
              <div class="question-r-title bg-white">
                  {volist name="nav" id="vo"}
                  <span {eq name="key" value="0"} class="q-border"{/eq}>{$vo}</span> > 
                  {/volist}
                  <a href="{:url('cms/help/show',['id'=>$data['id']])}">{$data.title}</a>
              </div>
              <div class="q-main q-m-space bg-white"  style="padding: 0;">
                  <div class="q-list-gary">
                      <div class="q-list-title">{$data.title}</div>
                      <div class="q-list-nr">
                          {$data.content}
                      </div>
                  </div>
                  <div class="question-bottom">
                      <div>这条帮助是否解决了您的问题？</div>
                      <div class="question-gary">已有 <span id="votenum">{$data.votenum|default="0"}</span> 人参与投票</div>
                      <div class="queation-select">
                          <input class="question-yes" data-id="{$data.id}" type="button" value="已解决" /> <input class="question-no" type="button" value="未解决" />
                      </div>
                      <div class="q-y-content hide"><span>已解决   谢谢您的参与！</span></div>
                  </div>
              </div>
          </div>
      </div>

  </div>

  <!-- footer -->
  <!--#include file="includes/foot.html"-->

  <!-- question no -->
  <div class="total-mask hide"></div>
  <div class="total-content hide">
       <div class="cart-d-content question-style">
            <div class="cart-d-white">
                <div class="cart-d-top clearfix">
                    <div class="cart-d-icon"><i></i></div>
                    <div class="q-text-red"><span>未解决</span></div>
                    <div class="q-text-gary">请提出您的宝贵意见</div>
                </div>
                <div class="question-write clearfix">
                    <div class="q-w-text">请选择原因：</div>
                    <div class="q-w-right">
                        <select class="q-select">
                            <option>请选择您觉得未解决的原因</option>
                            {volist name="reasonlist" id="vo"}
                            <option value="{$vo}">{$vo}</option>
                            {/volist}
                        </select>
                    </div>
                </div>
                <div class="question-write clearfix">
                    <div class="q-w-text">输入内容：</div>
                    <div class="q-w-right"><textarea class="q-textarea" placeholder="请输入您觉得未解决的原因，谢谢~"></textarea></div>
                </div>
                <div class="cart-d-a">
                    <a class="cart-d-color" data-id="{$data.id}" >提交</a><a class="cart-d-gary">取消</a>
                </div>
            </div>
       </div>
  </div>



  <!-- notice -->
  <script type="text/javascript" src="/public/static/home/js/jquery.SuperSlide.2.1.1.js"></script>
  <script>
    //help notice
    jQuery(".picScroll-top").slide({
        titCell: ".hd ul",
        mainCell: ".bd ul",
        autoPage: true,
        effect: "topLoop",
        autoPlay: true,
        vis: 1,
        interTime:6000,
        delayTime:700,
        trigger: "click"
    });
    $(function(){
      //help question tab
      $(".help-q-list ul li").click(function(){
         $(this).addClass("current").siblings().removeClass("current")
         $(".help-q-tab").hide().eq($(".help-q-list ul li").index(this)).show()
      })

      //member left
      $(".member-l-title").click(function(){
         $(this).parent(".member-l-list").toggleClass("m-current");
         $(this).parent(".member-l-list").find("ul").slideToggle()
      })
      $(".member-left").height($(".member-right").height())
      //question yes or no
      $(".question-no").click(function(){
        $(".total-mask,.total-content").show()
      })
      $(".cart-d-icon i,.cart-d-gary").click(function(){
        $(".total-mask,.total-content").hide()
      })

      $(".question-yes").click(function(){
          var obj=$(this);
          var aid=$(this).data("id");
          var p={"aid":aid,"issolve":1};
          $.post("{:url('cms/help/vote')}",p,function(d){
             if(d.code==0){
                 alert(d.msg);
             }else{
                obj.parent(".queation-select").hide();
                $(".q-y-content").show();
                $("#votenum").text(Number($("#votenum").text())+1);
             }
          });
      })

      $(".cart-d-color").click(function(){
          var obj=$(this);
          var aid=$(this).data("id");
          var reason=$("select.q-select option:selected").val();
          var content=$('.q-textarea').val();
          if(reason==''){
              alert("请先选择未解决的原因");
              return false;
          }
          var p={"aid":aid,"issolve":0,"reason":reason,"content":content};
          $.post("{:url('cms/help/vote')}",p,function(d){
             if(d.code==0){
                 alert(d.msg);
             }else{
                obj.parent(".queation-select").hide();
                $(".total-mask,.total-content").hide();
                $("#votenum").text(Number($("#votenum").text())+1);
             }
          });
      })

    })
  </script>